# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>

pkgname=megaglest-data
_pkgbasename=megaglest
pkgver=3.13.0
pkgrel=3
pkgdesc="Fork of Glest, a 3D real-time strategy game in a fantastic world (data files)"
arch=('any')
url="https://megaglest.org"
license=('custom:CCBYSA3.0')
makedepends=('cmake' 'xz' 'git')
source=("git+https://github.com/MegaGlest/megaglest-data#tag=${pkgver}")
md5sums=('SKIP')

build() {
  cd megaglest-data

  [[ -d build ]] && rm -r build
  mkdir build && cd build

  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
}

package() {
  cd megaglest-data

  cd build
  make DESTDIR="${pkgdir}" install

  install -Dm644 ../docs/README.data-license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}

# vim: sw=2:ts=2 et:
